widget: Make invalidation coordinates widget-relative
authorTimm Bäder <mail@baedert.org>
Tue, 31 Oct 2017 09:04:09 +0000 (10:04 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 31 Oct 2017 09:10:53 +0000 (10:10 +0100)
commitc97e2af23bb37f0ca76af75a52360035cf2355e3
tree661979467bc720e6e742b59e44cced66aa56c5a2
parent3dca25b6e43a112ea0a417a6382805d7c26a5cc3
widget: Make invalidation coordinates widget-relative

Consider the coordinates passed to gtk_widget_queue_draw_region to be
relative to @widget's origin, not its parent. That implies passing
priv->allocation or priv->clip to _queue_draw_region of a widget means
using its parent as @widget.

This fixes GtkScrolledWindow overshoot invalidation, which assumed the
coordinates to be widget-relative and not parent-relative.
gtk/gtkwidget.c